<?php
class Operation extends Zend_Db_Table
{
	protected $_name ="operation";
	protected $_primary = 'id';

 //根据id 查询operation
    public function getoperationByid($id){
          $select = $this->select();
          $select->where("id=".$id);
          return $this->fetchAll($select)->toArray();
    }


 //更新operation
    public function updateoperationByid($array,$id){

		$db = $this->getAdapter();
		$where=$db->quoteInto('id = ?', $id);
		$this->update($array, $where);
	}
//删除operation
     public function deloperationByid($id){
          $where = 'id = '. $id;
         $this->delete($where);
         return true;
    }

}

